﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	public partial class BankrollLogEntity
	{
		private readonly string[] arrCurrencyType = new string[] { "", "人民币", "美元","其他" };
		private readonly string[] arrMoneyType = new string[] { "", "现金", "银行汇款", "在线支付", "余额", "分销提成", "佣金结算", "提现", "赠送", "补偿", "测试", "转移" };
		
		/// <summary>
		/// 交易方式说明
		/// </summary>
		[NotMapped]
		public string MoneyTypeText
		{
			get
			{
				return arrMoneyType[MoneyType.GetValueOrDefault()];
			}
		}

		/// <summary>
		/// 币种说明
		/// </summary>
		[NotMapped]
		public string CurrencyTypeText
		{
			get
			{
				return arrCurrencyType[CurrencyType.GetValueOrDefault()];
			}
		}

		/// <summary>
		/// 资金状态说明
		/// </summary>
		[NotMapped]
		public string StatusText
		{
			get
			{
				return (Status.GetValueOrDefault() == 1) ? "已确认" : "未确认";
			}
		}
	}
}
